package com.shop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private Integer id;
    private String orderId;
    private Integer userId;
    private BigDecimal totalAmount;
    private String status;
    private String quantity;
    private Integer productId;
    private Integer couponId;
    private Integer addressId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createdAt;
    private User user;
    private Product product;
    private Coupon coupon;
    private Address address;
    private Category category;
    private Brand brand;
    private List<SkuDTO> skus;
    private List<ImageDTO> images;
    private List<AttributeDTO> attributes;
}
